﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FourFigures
{
    class FourFigures
    {
        static void Main(string[] args)
        {

            Console.WriteLine("请输入一个四位数");
            string o = Console.ReadLine();
            int num = int.Parse(o);
            int a, b, c, d;
            a = num / 1000;
            b = (num - a * 1000) / 100;
            c = (num - a * 1000 - b * 100) / 10;
            d = num % 10;
            Console.WriteLine("千位上的数是" +a);
            Console.WriteLine("百位上的数是" +b);
            Console.WriteLine("十位上的数是" +c);
            Console.WriteLine("个位上的数是" +d);
            Console.ReadLine();

        }
    }
}
